 <%@ page contentType="text/html; charset=UTF-8"%>
 <%@ taglib prefix="s" uri="/struts-tags"%>
 <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
 <html>
    <head>
       <link href="
       <s:url value="resources/css/main.css"/>
       " rel="stylesheet" type="text/css"/>
    </head>
    <body>
       <center>
          <table align=center>
             <tr>
                <td>
                   <h1>
                      <s:if test="payment==null || payment.paymentId == null">
                         <s:text name="label.payment.add"/>
                      </s:if>
                      <s:else>
                         <s:text name="label.payment.edit"/>
                      </s:else>
                   </h1>
                </td>
             </tr>
          </table>
          <table width=600 align=center>
             <tr>
                <td><a href="getAllPayments.html">Click Here to View Employees</a></td>
             </tr>
          </table>
          <table>
             <tr>
                <td align="left" style="font:bold;color:red">
                   <s:fielderror/>
                   <s:actionerror/>
                   <s:actionmessage/>
                </td>
             </tr>
          </table>
          <s:form>
             <table align="center" class="borderAll">
                <s:hidden name="payment.paymentId" />
                <s:hidden name="criteria" value="A0"/>
                <s:hidden name="criteriaSubId" value="1"/>



                <tr>
                   <td class="tdLabel">
                      <s:text name="label.payment.amount"/>
                   </td>
                   <td>
                      <s:textfield name="payment.amount" size="30"/>
                   </td>
                </tr>
                <tr>
                   <td class="tdLabel">
                      <s:text name="label.payment.paymentDate"/>
                   </td>
                   <td>
                      <s:textfield name="payment.paymentDate" size="30"/>
                   </td>
                </tr>


             </table>
             <table>
                <tr>
                   <td>

                   <s:if test="payment==null || payment.paymentId == null">
                                              <s:submit action="cashInsert" key="button.label.submit" cssClass="butStnd"/>
                                         </s:if>
                                         <s:else>
                                             <s:submit action="cashUpdate" key="button.label.submit" cssClass="butStnd"/>
                                         </s:else>

                   </td>
                   <td>
                      <s:reset key="button.label.cancel" cssClass="butStnd" action="cashInsertOrUpdate" />
                   </td>
                <tr>
             </table>
          </s:form>
       </center>
    </body>
 </html>